package lab02.test04;

public class Employee {
    //属性:员工姓名、员工号码、员工基本薪水、员工薪水增长额
    private String name;
    private String number;
    private float salary;
    private float increase;
    /*行为:获取员工姓名、获取员工号码、获取员工基本薪水、
    计算薪水增长额及计算增长后的工资总额*/
    public String getName(){return name;}

    public void setName(String name){this.name=name;}

    public String getNumber(){return number;}

    public void setNumber(String number){this.number=number;}

    public float getSalary(){return salary;}

    public void setSalary(float salary){this.salary=salary;}

    public float getIncrease(){return increase;}

    public void setIncrease(float increase){this.increase=increase;}

    //构造函数
    public void salaryIncrease(){
        System.out.println("工资增长额："+increase);
    }
    public void allSalary(){
        System.out.println("工资总额为："+(salary+increase));
    }
}
